Added Test Package Structure

Added XD_HOME environment variable
Changed build to support Java 1.7