fix tests to use to_a