Fixed bug in testNames - change declare to define; modified constructor rule to replace multipl capital letter constructor instead of assuming constan(ie new UICommandFactory)