Use *test* dir in *temp_dir* for testing.

To standardise the tests to dump the data in test dir inside temp_dir.

Signed-off-by: Akbar Gumbira <akbargumbira@gmail.com>