cleaned up tests and implemented link testing