Fixed incorrect test in scala tests