Moar unit tests and stuff

Test Plan:
Hit /utils/tests/answer-types.html in Chrome.

Auditors: eater