Made some basic test cases for api resource and get wp service.