Added tests for http and pb inde not found cases; refactored wm resource_available callback