Refactored print_tests to var_info. Added summary to var_info.