Move tests to the proper location

The tests were in the api directory but should be located in the magnum
directory instead.