Finish writing the unit tests

Add 118 unit tests to validate that RiveScript is working as intended.
Fix a couple bugs in RiveScript.pm where its behavior wasn't what was
expected.