Refactored tests into integration test suite.