javascript + rest tests