Reworked Utilities::arrayContainsOnlyInstancesOf() to throw an exception instead of returning false

also changed BodyLengthTest to use @test annotation