Missing tests for this function