Changed self references in ruby test plugin
Check for method before calling
Added method_exists function to ruby plugins