unit tests for enrollment