reference fix
added very basic post/delete tests