added stack marker, fixed warnings and errors found while playing with test around