fixing automated test