change serializer API so it doesn't have to do file stuff
add tests for registering serializer
remove unused cassette in with statement