Add Flask views tests