testcode split in method