Fix freeze in tests caused by improper fixture