split out Foundation.hs
more tests