 #		'should fail on nonexistent table'
 #	)
 
-	migrateTables 'permission_kind', 'uniusers'
+	clearTables 'uniusers'
 	query 'INSERT INTO uniusers (username) VALUES ( $1 )', ['Sauron']
 	
 	test.strictEqual userExists('Sauron'), true, 'should return true if user exists'

		
		query "UPDATE uniusers SET sessid = 'someid'"
		
		timeBefore = new Date(queryOne('SELECT sess_time FROM uniusers').sess_time)
		
		res = users.sessionInfoRefreshing.sync null, conn, 'someid', 7200, false
		test.deepEqual res, {



exports.idExists = (test) ->
	clearTables 'uniusers'
	query 'INSERT INTO uniusers (id) VALUES ( $1 )', [114]
	
	test.strictEqual users.idExists.sync(null, conn, 114), true, 'should return true when user exists'
