complete test_add_and_list, add invalid command and invalid prompt format handling