RSpec helpers for checking memory allocations
