Test written in ScalaTest as a proof of concept