Use the full path to the binary under test:
```
test do
  system bin/"hbtest"
end
```