Generalized tests and added row events tests

* Also, cleaned up sliceBits() and null value parsing