adding test function for constantLine()