Create test_usage.cpp

Code to check and understand the usage of API