everything compiles, but tests segfault