Engine really knocks after leakdown

Really need a better discription of the noise and exactly where it's coming from. Did you pull the rockers shafts to close all the valves while testing? If so, maybe something didn't get tightened or go back where it belongs.