Rewrite account test into a spec