add tests for npm run build-test and build-example commands