Add test for invalid values
Added examples to readme