Fix bug in spell test