Added test cases for private methods in traits