Added unit test.  Refs #9326.

Init unit test file;
Modified CMake;
Reformat .h and .cpp files