Updated queue to work when parent is declared as a property on the state. Added test for cross-module implementation.