Tests for ISPN-3436

Test for the JIRA issuse: https://issues.jboss.org/browse/ISPN-3436