rewrite inject test