unittest to models and controller