small fixes and add "gmake test"