fixed clear cache bug
added clear attribute cache
added unit test for testing getComponents of View