ticket:33 Added new tests
ticket:33 Made roles api view act like get/set accessor
ticket:33 Added docstring