fix broken tests.

Fix tests because tests were for old code.