added controller and model tests for idea and modified controller and model