add controller factory test