serverpathRemover breaks 500-pages when testing

I found that serverpathRemover is not declared when testing with bdd, thus leading to ambiguous error messages (or none at all).

Further, i added console.error as an appLogger.