integration tests for user