Added basic integration tests.