The last test passed when I forked and tested it. The only one that failed is the the date string test (next to last) that fails my time of day due to the timezone offset problem.
Beware of this kind of code though:
if (error) {
res.json("Invalid UserID");
return console.log(error);
}
You really should use return res.json(...) or convert the error to JSON and return that. This code returns the result of console.log(), which is none. Returning anything after a response is a good way to unintentionally confuse whatever client is awaiting the response and can lead to very confusing results.