fixed errors batchApiTest classes
added unit test for BatchApiResource