more tests for json2dir
better way of doing inheritable attributes