unit tests for filterSchema; also fixed method ;-)