Add tests about default arg for host for database
Fix bug in tests