Add unit-level test for as_json base_path