Major improvement: Simplified validate functions

Both input and output tests validate functions are greatly simplified.

No more validate function is needed for input tests.

Output tests just need to call compare_outputs function.