added parseClassName function to nestedCtrl and updated unit test