add a test application

$ make
$ ./test