Fixing checkstyle violations.
Adding test case for PartitionManager.lookupById.