add test controller, view, and localonly attribute