Modified FeatureInfo control

Repaired some bugs and added tests. Maybe would need a refactoring.