Also, would Emma and MM not have mentioned that there was magic, or at least talked about the raith, when they met Lance a lot… because even discussing the raith would make Cora know there was magic, otherwise the raith never could have been there.
Also, if there wasn’t magic in Storybrooke, Emma and MM never could have gotten to FTL. So… I don’t think it is a big deal that Cora knew there was magic there.
I think she was testing if her magic worked the same way when she transported in front of Hook at the beginning, to see if it would work.