Resolves #1769, Ref #1823
Load jwt secret from file instead of stdin in tests, because stdin is not supported when reloading the config. Resolves #2126.