Fixed and modularized line creation test