Added test_with_mock.
Merge pull request #3 from jjh42/test_with_mock

Added test_with_mock.