adding test option. if req.query.test is defined, then the document will not be commited to the database
adding test option. if req.query.test is defined, then the document will not be commited to the database
woops. wrong logic on the test