Reusable JS test abstractions