rename of testapp binary and refactor of build script