Added test for inverted expression section - GH #541

Passing test based on #541