Fix symbol typos in Craft.js

Also added test file for Craft.js