Fix test script not checking conditions correctly
Add support for negative case regex solving.

Improves #99