Added tests for DbAPIUsersRepository, DbDataRepository,  DbNotificationsRepository, updated hasPendingNotification to return last notification not sended, bug fix changing api user from active to non