fixed a duplicate issue and added another test