Add test_constructor_attach() test case