Added test for TerminalMagics