Update hofa.erl

Added test of filter func to file hofa.erl