Rename piece files, add karma tests