Test which causes the "Caused by: java.lang.IllegalStateException: Rebinding master not supported: .." exception