REPORTS-216: Refined code and added a test method to confirm formatting ...

...for null TB Reg No