tweaking validation test code and debug