Are there any unit tests for this logic?