Handle nil's in specs (or cast to_i, but this would make the test nonsense)