Refactor basic api
Added basic spell test