Add `table_name` accessor to record spy

This adds a `table_name` accessor to the record spy to allow
reading and writing it just like actual ActiveRecord classes.