fixed namespace error on roles class added test for the constructor test