Added rewrite to static json file.
Updated tests.