Move class tests under class

@rafaelfranca
No there is not any case. How can we ensure it?