tweaks to rest handling and test.clj