Add tests for User::getCanonicalName()

Change-Id: I00097a4706c4ada41a5697470b550c925ae6051d
Merge "Add tests for User::getCanonicalName()"