More error logging in BaseTests