added test for adding an object via the class directly (although this should be kinda the same)
added a test and fix for the bug where putting a default value like ``location={}`` in there it being overwritten all the time because the value was not copied and thus the class being changed.