Added test cases for nan replacement