Replaced dies_ok() with throws_ok() to test for specific error messages.
Added tests to cover undef and [] filtering criteria.
Fixed detecting invalid filtering criteria [].