Moved common controller test setup code to shared parent class.