Tests for #113

Added tests covering inheritance automapping bug fix  described in #113