added deatch test for record class, closes #164