It turned out that I wasn't closing the connection in the seedTestUserActionData function. That was the missing piece.
seedTestUserActionData