Line tests

Fix is simple, needs to be evaluated by kangax.