small refactor on tests
fix spec helper