tests: use a fixture for tests