refactored webservice test - moved create facility api to json utility