add cpp tests for take step uniform