learn & rewrite testing spec