added tests to account service