Update file hofa.erl

added test for changed function 'filter'