More tests + fixes

- expressions now update cache only if cached flag is set
- added gevent threading module monkey patch to testsuite
- added tests for external access of expressions