adding support for stacklead with tests