added GetRecord method and test