added authority gem, enrollment object, tests