add readOnly option
add test code
[M] Make the readonly option use double-curly expressions.