Fixed issue caused by nose test generator where master_mock is not re-created between generated tests. Moved patch decorators inside unit tests. Closes issue #2.