fixed variable assignments in unit tests