Fixing test case logic for scaffolding controllers