harden and unit test variables