Use the correct variable in mongo testing