Add basis and io tests