Compile simple index
Repository get_by_id with assert test