adjust selenium tests to https server.
fix small timing issues