added functionality and test for msg <k>
moved my tests into a folder