Fix behaviour for simple stubs when stubbing core methods.
Merge pull request #404 from xaviershay/issue-403

Fix behaviour for simple stubs when stubbing core methods.