refactored one into two tests