Fixed error messaging when accessing invalid cart. Updated test.