Test mvc pattern