add test of case and case's bug fix
fix test's Makefile