Add test code for new version

Use new hooks for version greater then 50500