Support Top level mocks

* Fixes #23 
* Update expect allow tests.
* Add tests to verify toplevel functions can be mocked.