add create and update and integration tests