added unit test for $JS.namespace