Layers of liquid with glittered glue and shredded hot glue stick in a test tube I am trying out the following craft idea, the ingredients and steps are as follows:
Ingredients

Water (or distilled water) that is dyed using three colors.
A Test tube with cork.
Hot-glue stick (and shredded into small 1mm to 5mm size)
Glitters Glue (with different colors)

Steps

Pour the red dyed color water into the test tube (around 5ml to 10ml).
Put some shredded hot-glue stick and make sure that it covers the red dyed water.
Pour some glittered glue and wait for 10 mins before putting another layer of shredded hot-glue stick.
Wait for a day (to ensure that the glue fully dries).
Pour the blue dyed color water into the test tube (around 5ml to 10ml).
Put some shredded hot-glue stick and make sure that it covers the blue dyed water.
Pour some glittered glue and wait for 10 minutes before putting another layer of shredded hot-glue stick.
Wait for a day (to ensure that the glue fully dries).
Pour the green dyed color water into the test tube (around 5ml to 10ml or to near the tip of the test tube).
Close the test tube with the cork.
Enjoy the multiple layers of dyed water with glittered glue and shredded hot glue stick.

Illustration

Question
Now the most important part - will the above craft idea work?
Concerns

Will the glittered glue eventually give way, regardless of whether the test tube is shaken or not?
Do I need to mix special glue (like water-proof silicone glue) with the glittered glue to strengthen the layering?
What other precautions or measures do I need to take to ensure all the layers will stay where they are supposed to be?
Yes, it's likely that an off-the-shelf glitter glue will give out, if it hardens at all in the wet environment. Glitter glue is a PVA glue, which tends to soften and dissolve when exposed to water; it's the same base as "washable school glue," and while different PVA glues have different solubilities, the base used in glitter glues is a highly soluble base for easy clean-up when used by children. "Shredded hot glue" is not going to provide a sufficient moisture barrier to prevent the glue from eventually being dissolved away by the water, and it's unlikely that the PVA glue will sufficiently bond to the glass to stop liquid from seeping between layers, especially as it begins to dissolve.

You may wish to use a different type of glue, but as an alternate approach, evaluate what appearance you want from this at the end. Is it just layers of translucent colors? If so, consider tinted crafting resins (please follow all safety instructions!); these will be solid when they cure, and will have no risk of spilling or mingling with each other. If the liquid appearance is important, use a waterproof glue that will also adhere to glass, such as aquarium glue, but be aware that this may not dry when in direct or near-direct contact with the liquid. You'll want to test it before committing to your full project.