Create user_test.cpp

this test is to test the user level API. m2m and m2p have been tested.