Write a large number of asserts

Test results are now automatically compared to example responses from
documentation.