added constructor tests for component