added tests for writeonly fields