wrote tests and implementation for status