tests for validating user and attributes