test interactive mode