added test for the attribute error I got prior