fix obj variable in test functions