refactoring rules and speed tests into their own files