make it work when not viewing tests