savepoint_name should return nil for non-savepoint transactions

Also add test to assets the savepoint name