Update Tests and Constants

Use uppercase name for constants. Add Test for Dimension Factory.