Refactor require test using fixtures