Best practice in writing test cases

Hey serggulko,

In the case of .stale(UPDATE_BEFORE), you should be getting data that is up to date for that point in time. Keep in mind if you perform asynchronous inserts that you’re data might not actually have reached the server yet, make sure all insertion operations complete successfully before attempting to perform a view read. Note also that the Node.js client comes with a built in mock system that allows you to locally mock the behaviour of the client quite closely to what you would expect from a real server. Tests are an excellent use for this (and the main reason for it).

Cheers, Brett