Improve cmake.sh: Remove `rebuild` and Add `test`

`rebuild` was not necessary as did the same as `setup`.