BugFixes in test in main
Renamed private function getBlockSize to calcBlockSize