Added assertion.
Implemented default prefix.
Added more tests.