moving tests to core; fixing weird bugs in the blowtorch