Issue #154: add tests for "FilterCards" activity

Added all the test for "FilterCards" activity, some minor changes and
fixes.