Refactor version property tests
Test that version value is empty if version is not set
Detect empty version id correctly