working with nosql database, but full unit testing is needed