Added test helpers, standard error messages, and more tests.