Added tests for delete view and fixed list view