somewhat working tests