Merge "Add unit tests for pow's behavior with NaNs."