added unit tests

defaults from ellislabs