added build script and tests