Unit tests for optional property writing.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
Removing output from unit tests.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>