Unit tests for JS