tests: prefer functions over methods