added test method to WebAPI