adds before and after fn options for tests