Improve degree type tests by generalizing them

This looks at the degree_types defined in config/application.rb to
test that all the defined types are listed correctly