Removed the integration test and added unit test.