Fix most tests
Adds tests for set_attributes_from_version
Fix openjdk_spec