Added publishing specific tests
Removes some build warnings