Refactored the test, would have to read about reflection in Scala for checking on the type
Implemented tail and setHead for MyList