Add test code to common