tests valid tmp