Add some tests and fixes so build is more robust
Merge branch 'javascript_build' of github.com:jesseeichar/core-geonetwork into javascript_build