Added tests for testing that property values are written correctly as attribute in XAML; namespace prefix should only be used for attached properties, and prefix should be generated and added if not already present.