Added tests for completion handler.