Partition functions of higher spin black holes and their CFT duals