Add test case for code that produced unexpected result
Modify isSimpleExpression logic to pass previously failing test case

This change brakes one test case that was previously working, but it's not worth spending time resolving as it will be impacted by a forthcoming major refactoring of the library