added test for overwriting component