Add tests for toArray()
Delete not implemented stuff
Refactor the equipment and type