Adds tests for update and functions