Fixed bug with answers not being parsed. Added unit test for substitution logic.