move test code to badlands