Set namespaces of attributes correctly

Also added tests for them.
Move namespace tests to their own file
Properly test for namespace/tag combinations
Version 1.0.0-pre.4