add tests, sync functions do not error