mostly working tests