Fix testcases

Fix the testcases, this does not use the mockConfig which should be used instead.