fix jade errors; add local mongodb configuration for tests