Case Test optimization and make print