Correct some test conventions.
Support local.properties with missing sdk.dir property.