added previous orders and checkout features
fixed previous order output error
added additional tests