added versioning to retreieval methods and corresponding tests