Add bt_trace method, update tests