Add tests for presence and uniqueness