Fixing bug in unit tests.