refactor integration tests for users