add ifmain so tests are not run in docs build