added more tests.
changed IsEmpty and IsLeaf methods to protect from nullrefrenceException
because of bad delete.