test deposit, fix agent to save comm_per