Rewrote tests for invalid strings as per Pragmatic Unit Testing book.