Tests for comparing with JS