fixed bugs and added tests for role and person classes