tests: allow running test file directly

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>