added tests, refactored existing tests, cleaned dupes in config routes
:whale: