Move some junit tests to correct modules and remove duplicated config source from core package