Fixed failing unit tests when built using build.xml