Fixing js connection tests