knock won't have much effect on your emission's numbers. As for oxygen sensor...bypassing it could cause you to fail the test, but it also depends on other factors like ignition timing, does it burn oil, how rich it runs, ect. Do you have a catalytic?