Updated testing

Updated code and updated some of the tests. Removed some of the useless tests.
Why are all of these null tests removed?