added test for notifysuccess and added tostring methods for db entities