adds callback for updateValues method and expands test coverage