Added some unit tests. Refs #8744.