Fix typos in test code
Add indefinite length tests