Knockout asynchronous foreach test