more tests on code

issue #38