Completed ToPropertyString method and added unit tests.