Fixed compilation failing if test wasn't on