Add test case to verify compile to register format with name

Review URL: https://api.github.com/repos/google/traceur-compiler/issues/1470

Closes #1470.