Removed deprecated ApplicationArtifact and fixed tests. Also added tests to build.