Write tests for AbstractComponentList

Added contains method to the AbstractComponentList