Adjusted config file, added tests and check for user roles