add test-dirs and libs. change requirejs path from js to js/lib