Added Curl::getDispatcher() and Curl::getSession().
Check if the class exists first.
Added tests for Curl methods.
Proper if/else syntax.
Cleaned up tests for Curl helper.