Add tests for <fx-observer> and simplify the design of it.