#225: update test cases; use temp dirs to play with test cases