Rewrite test to use fixtures.
Because the test now uses fixtures, we can remove unneeded code.