fix random behaviour tests in TestFormExpressionsAPIImpl