When was the old testament written and by whom