fix demo layer controls
fix tests
fix random color macro