[fix] [minor] fixes in test cases for is_pos