Updated tests and fixed bug with component details