Fix machines state tests