add tests for declarative components