moved integration tests and added setup/teardown