Migrated tests to tests/degree.R