Code style improvements for Unit unit test

Refs #5799