fixed up main controller test