Add test for registerAll