added tests for setting attributes