I need to write a test in solidity to test a withdrawFunds function. This function has an isOwner modifier which tests if the address of the sender is the same as the address stored as the owner's as part of the constructor. The problem is that when I try to invoke the withdrawFunds function, the function fails and says that I am not the owner. Is there any way I can test this functionality? Would proxy contracts help here? Any insight would be very helpful.
PS: I added an event to log the address stored as the owner's as part of the constructor (msg.sender) and to log the address the function receives as msg.sender. Both of these are different and I am not sure how to invoke this function as the owner.