added scala test