Factor out test_ctnr1 and some creation logic