Renaming refactoring and adding tests.
Layer tests for REST API working well with mocks.
Moved PUT update logic from API layer to data layer.