SI-7519: Additional test case covering sbt/sbt#914

(cherry picked from commit e72c32db03b44d6eaf1c1872765a578c5445e15f)