added tests for [After*] and [Before*] metadata