Fix failing tests and add test on version and site read/write