simplify fixtures
add chat view test fixture
add init tests
decouple component and attach to document