added more test cases for sub generate_numeric_profile
improved checks and minnor fixes
need to mock few sub to validate generate_numeric_profile