Removed unused variable roles.
Added behavior testing.