Improved api account controller tests