Added answer comparison to the test framework.
Generalized the printing framework.