Switch sync tests to function-based
Flake 8