Unit tests for s.js

Tests for main s.js object