Proper way to test private methods.