More unit tests for Open Line, fixed bugs