Add systemgroup and environments tests