unit tests for integration