Added some test for filterOptions