finished filter function tests