Adding test for undefined in filter