Fixed NoMethodError StandardError bug #132

Fixed NoMethodError StandardError bug #132, added specs, changed throw of StandardError to ArgumentError since its actually an error on the argument.