found a simpler way to test componentwillrecieveprops