[test] Add unit test for rhbz#1015596
Take stereotypes into account during dependency extraction