Fix tests

fixes the test cases to handle panics and switches them to expect ints instead of int64s