made the tests work, update to variance handling