add spec for existing active record object

Hi! 
Just added a test case for handling newly closed bug (8561b7fc11374a9d396318921618894eef3f8d76).