added tests, fixed divise active admin bug