added support for anonymous stacks, also added tests for that

also fixed the leak test to be more betterer