implement tests for traits