added mocha tests for stubs and mocks