Add tests for package filter functionality