Fix for failing junits. Core metadata needs to be set.