fix bug in test filter
first iteration on testing system