helper methods for testing
added tests for update method