added update functionality and refactored the criteria lookup tests