Test is created, which checks that enumerations are also copied