Updated remote-testing functionality for library usage