added test for view command at database level