added model tests and contrller tests