Fixed NoMethodError StandardError bug #142, added specs, changed throw of StandardError to ArgumentError.