Refactor tests into jjb-tests directory