some unit tests and bric factory