added test for end attribute in input