Add rebuild script, remove antiquated tests