fixes unit tests
handles embedded collections
implements post

TODO: error handling
unit test for error handling in post
implements patch