Alternate between test and implementation

Closes #33.