create test functions in the right db