Fix completion blocks call order when executing batch of requests

Fixes #1453. Completion block for group of requests should be called after all completion blocks have finished executing.

I also added a test, that ensures blocks are executed in correct order.