Add test cases to BlockManagerSuite for SPARK-2583