moved asserts over to raises and unittests

there were some lingering asserts that were transitioned over to
to exception raises that are handled locally and rendered into
json error messages to datatables

unittests validated each of the asserts