add tests close #45