Add new unit tests for classes, foreach, variables