add geometry line and chart
refactor test to use high order function combinator