Add test for replace_nones