Update and rename test.hs to core.hs