More unit test codes; added junit and headless backend into core project
More unit test codes; added junit and headless backend into core project