Tests: don't return result code -1 under TeamCity