Fixed documentation and added test for invalid card