Tests for persistence

WIP
Don't know why controller returns 406 response code, though it adds post as expected.