Added tests for the internal filter method.