Add missing tests.

Add tests to cover incorrect arguments for readwrite() and readonly().