core: fix Environment tests