Added unit test for IteratingSystem

This PR adds:

- Tes unit to IteratingSystem

- Refactor EntitySystem to be an abstract class