Add test for wrong place in work of algorithm