Fixed format validation functions and added visa format test case.
Merge remote-tracking branch 'origin/master'