Simplify unit tests execution

Add setUp method to handle exposing private methods to be tested.