Fix automated test