update store in order function and test