Update unit test based on python changes