added tests for end of string and non integer values