added test and functionality for read and edit resource