fixing bug 5038

property 'inheritance' of applications was ignored 'cause it was not retrieved from database !
adding a test case