Added scala unit tests