fix
added unittests for value.dtype and several corner cases