Add test for emit of creation event