Add tests to Database group

Also change needsToken return value for ApiEditMassMessageList.

Change-Id: I2f03d5c1a842d5faf2013ab50c0626c5ad8f34fc