Corrected front page models and methods, added tests

Corrected front page models and methods, added tests