use bin dir to call json in tests.