add simple test with javascript client