Add a test for ofType.