Fixed view inject test for new API levels