Adds unit test stubs and PATCH endpoint impl.