fixed build script
added simple testcase;