Add test cases, build script