Added test cases; Fixed device_vector size check; Marked a bug