Add functional tests

- Update class_from_score
- Be more careful when comparing strings