Create test.c

Simple test program for cbeacon