Add a lot of tests to verify parsing routines for scenarios that should pass.  Some changes TBD, like stripping command spaces off end of expressions.