print stdout in misc tests
add tests for addMetadata on abstracts (see #3500)
avoid null Int issue on static targets