merge former typeof test

inspired from per CPU