Tests for PUT method

It could use some more corner cases, but it's good enough for a start.