rename unit-test entry point to test.[hc]pp
add const to argument
refactor handle  - push code to another function