Added tests for loading config and legend files