testing effects npe fixes