Attorney Unit Test and Centriod Bug Fix

Added a unit test for one of the functions in the attorney model. Also
fixed a variable name in the Cenriod module that caused an error.