cleanup tests
remove node.js specific code
remove unused block of code
remove unreachable code