Added dpattr<- methods and tests for attributes