Upgraded qunit definitions

I changed variable declarations for function declarations to allow overloading