Adds test to validate numpy array validitiy through serialization