tests for lazy tables and substring expr