OAK-351 - Inconsistency issue when committing a new node under an old parent

Added the test case for the issue

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1437314 13f79535-47bb-0310-9956-ffa450edef68