Added tests for id validation in versioned entities