[core] Fix several broken and hanging tests

Fix metastore tests that were out of sync
Disable dynamic fields
Change port of Oozie test server has it is conflicting with Spark master.
Move config_validator dependencies into the function to avoid conflicts.