Add factory method for adaptor, move test code in to temporary `tests` directory and update it to use the factory method.