Tests in scala