added scala testing, which does not work