Added tests to check if values in kernel are finite, modified porosity for porositytest.py