Add line spec tests
Cleanups in spec tests