added assert error messages. fixed sliced attributes tests
fixed size computation. tests pass
removed print statment
added segment class to test error message
use explicit integer division syntax to fix type being converted from int to numpy.float64
use np.testing to speed up iterable test array comparison by 10x