Add unit tests for empty, head, tail, startWith, repeat, and scan