add (and fix) tests for datalayout