Made nested test better