Add foundations and test for foundations