Updated test checks to include new deprecations.

Used a higher level implementation for messages in JavapClass.