added sql file to create new TJ test; added test for TJ function