fixing errors within tests