Adjust paths and compilation options for test tasks
Fix redundant tests being run by eunit
Put test beams for ct in a different directory as well