[WIP] Unit tests