Fix require order in test that was causing the code climate error