Added tests for invalid component registration