Tests for user and config classes
Add tests for factories and connection pool