apparently the $this->layout method doesnt work with unit testing