2.0 tests

Added JS unit tests for all components.