Refactored a little and added tests for configureCell category.