Add test case to verify compile to register format with name