Added unit testing for validation of categorical variable value

BMS-127-131

Reviewer: Aldrin Batac