Fixed a check in filter parsing.
Added a few new tests. Now having compilation/execution error checks as well.