Added some tests for PrettyParams and fixed #27 and #37 in the process.