added tests and fixed bugs in loading of footprint from params