lib: refactor to use `validateInteger`
Use validateInteger for record and revise error code of percentile.
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Use validateInteger for record and revise error code of percentile.