Maybe these two different tests for Phantom and Slimer should sit in their own dedicated function to ease further maintainability, what do you think?