Updated tests to check for range errors
Range checks, typos sorted