Looks like you switched the wires and now the fog lights are connected to the headlight. You can use the tester with the high beams on and switch it back or use a relay
You can check some general tips on fog light installation in this tech article: Selecting And Installing A Set Of Fog Lights more