added tests uncovered logic