add test and build system
and bugfix