simplify test in spec helper