add test target
add simple unit test driver.
remove extraneous includes from test.c
add wrapper tilt function and update build process accordingly.