added test code for kineticjs