You can switch to test code for ABAP classes by choosing the Test Classes tab at the bottom of the ABAP editor. That's good, but even better would be to be able to edit source code and test code side-by-side. Here is how to do this, using the multiple editor support of the ABAP Developer Tools.
For documentation in the languages and at the release level installed in your ABAP servers, choose
using the integrated SAP GUI front end program.The editor is embedded in the new window. You can now work with your source code and test code displayed side-by-side in separate windows.