Fixing tests to verify thrown ValueError's.