adding pytest version of test_lgrngn_adve