Remove getComponentName and serializeComponents functions.

Removed getName test and fixed serialize test. getComponentName and
serializeComponents were application specific.