Added confirmed and accepted JS tests and implementation