clang fixes for test_power_layer

Add using std::isnan and use this-> when calling Test{For,Back}ward -- seems to fix compiler errors in clang that @shelhamer pointed out.