amend test code snippet post