Created in-memory database config file for testing environment in order to have fast and clean tests.
Changed update method of PageRepository in order to fail if the resource doesn't exists and updated tests in order not to touch database.