9174f67 Massive clean up test cases, and so bugfix hidden bugs.