fix an issue introduced in matthuhiggins/foreigner@f29d0f1 ... :join_table
could be a symbol, which causes remove_prefix_and_suffix to blow up.
table names from other associations do not have this issue, as they are
always strings. regardless, this commit adds better test coverage so that
we know if any to_ruby call breaks.