css greener, less repetition is tests, added more tests for case of string inputs