strengthen constness of immutable parameter
clarify test flag enum