Added first test + error logger