Add WP_STREAM_CLASS_DIR check to tests