refactored test into to two tests