add unit tests for extension filtering