added a better integration test for assigning a metagoal to a goal in creation or editition